package com.lovo.sheyingback.dao;

import com.lovo.sheyingback.bean.User;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* @author BDK-THINKPAD
* @description 针对表【t_user(用户表)】的数据库操作Mapper
* @createDate 2023-07-24 21:31:45
* @Entity com.lovo.sheyingback.bean.User
*/
@Repository
public interface UserMapper {
    List<User> listUser();
    User getByUsername(String username);
    User getByUsernameAndPwd(User user);
    User getById(Integer id);
    int insert(User user);
    int insertUserAndRole(Integer userId,Integer roleId);
    int insertUserAndFunction(Integer userId,Integer functionId);
    int update(User user);
    int delete(Integer id);
    int deleteUserRole(Integer userId);
    int deleteUserFunction(Integer userId);
}




